package edu.xlh.travel.service;

import com.alibaba.fastjson.JSONArray;
import edu.xlh.travel.common.Result;
import edu.xlh.travel.pojo.Notice;

import javax.servlet.http.HttpSession;
import java.util.HashMap;

public interface NoticeService {
    Result getlasterNotice(HttpSession session);

    Result issuedNotice(HashMap hashMap, HttpSession session);

    Result findAllNotice(int page  , int limit , HttpSession session);

    Result edit(String id , Notice notice, HttpSession session);

    Result deleteById(String id, HashMap hashMap, HttpSession session);

    Result batchDelete(JSONArray jsonArray, HttpSession session);

    Result QueryNoticeByCondition(Integer page, Integer limit , Notice notice, HttpSession session);

    Result findById(String id, HttpSession session);

    Result editNotice(String noticeId, Notice notice, HttpSession session);
}
